home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12218 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: string search?
  5. Date: Fri, 29 Mar 96 19:15:18 GMT
  6. Organization: none
  7. Distribution: world
  8. Message-ID: <828126918snz@genesis.demon.co.uk>
  9. References: <4jc6ae$eol@voyager.eng.gulfaero.com> <4jdot7$eb0@sparcserver.lrz-muenchen.de>
  10. Reply-To: fred@genesis.demon.co.uk
  11. X-NNTP-Posting-Host: genesis.demon.co.uk
  12. X-Newsreader: Demon Internet Simple News v1.27
  13. X-Mail2News-Path: genesis.demon.co.uk
  14.  
  15. In article <4jdot7$eb0@sparcserver.lrz-muenchen.de>
  16.            watzka@stat.uni-muenchen.de "Kurt Watzka" writes:
  17.  
  18. >swofford@voyager.eng.gulfaero.com (Van Swofford) writes:
  19. >>Ricardo Mor  <rmor1@ix.netcom.com> wrote:
  20. >>>    How can I search for a string of characters within another string?
  21. >
  22. >>The Microsoft C documentation indicates that strstr is ANSI compliant,
  23. >>but not available under UNIX.
  24. >
  25. >Well, if it is a function from the _standard_ C library, and if it is
  26. >not available under UNIX, then obviously all UNIX implementations are
  27. >non-ANSI implementations. This might be wrong, afaik :-)
  28.  
  29. This probably means that it is not a Unix defined function - but that's
  30. obvious because it is an ANSI defined function. POSIX.1 is a requirement
  31. for a UNIX(tm) system which in turn requires ANSI C. So at least for the
  32. last few years years a UNIX(tm) system *must* support strstr().
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.